package com.dhcc.DRGsHosp.core.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.openkoala.koala.commons.domain.KoalaLegacyEntity;

/**
 * 
 * @ClassName: MrqScoreDetail  
 * @Description ：病案质控违规项扣分明细    
 * @Date: 2018年7月26日 下午3:36:40  
 * @Author QiaoYiLong 
 * @Version 3.1.1 DHC-DRG
 */
@Entity
@Table(name="MRQ_SCORE_DETAIL", schema = "DRGs")
public class MrqScoreDetail extends KoalaLegacyEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2944713664910028116L;

	public MrqScoreDetail(){
		super();
	}
	/**
	 * 构造函数
	 * @param id  主键	
	 * @param pmainIndex  病例ID
	 * @param scoreCode   首页大类检查项目编码
	 * @param weightCode  得分权重编码
	 * @param detailCode  得分项目编码
	 * @param detailDeduction
	 */
	public MrqScoreDetail(String id,String pmainIndex,String scoreCode,String weightCode,String detailCode,Double detailDeduction){
		this.id = id ;
		this.pmainIndex = pmainIndex ;
		this.scoreCode = scoreCode ;
		this.weightCode = weightCode ;
		this.detailCode = detailCode ;
		this.detailDeduction = detailDeduction ;
	}
	
	/*该字段的getId()方法返回的不是String类型，而是下面的Serializable
	 * 	@Override
		public Serializable getId() {
			return id;
		}
	 */
	//主键	
	@Id
	@Column(name = "ID",nullable=false)
	private String id;

	//病例ID
	@Column(name = "PMAININDEX",nullable=false)
	private String pmainIndex;
	
	//首页大类检查项目编码	
	@Column(name = "SCORE_CODE",nullable=false)
	private String scoreCode;

	//得分权重编码	
	@Column(name = "WEIGHT_CODE",nullable=false)
	private String weightCode;
	
	//得分项目编码	
	@Column(name = "DETAIL_CODE",nullable=false)
	private String detailCode;
	
	//分数（扣分）
	@Column(name = "DETAIL_DEDUCTION")
	private Double detailDeduction;
	
	private String totalId;
	
	public String getPmainIndex() {
		return pmainIndex;
	}
	public void setPmainIndex(String pmainIndex) {
		this.pmainIndex = pmainIndex;
	}
	public String getScoreCode() {
		return scoreCode;
	}
	public void setScoreCode(String scoreCode) {
		this.scoreCode = scoreCode;
	}
	public String getWeightCode() {
		return weightCode;
	}
	public void setWeightCode(String weightCode) {
		this.weightCode = weightCode;
	}
	public String getDetailCode() {
		return detailCode;
	}
	public void setDetailCode(String detailCode) {
		this.detailCode = detailCode;
	}
	public Double getDetailDeduction() {
		return detailDeduction;
	}
	public void setDetailDeduction(Double detailDeduction) {
		this.detailDeduction = detailDeduction;
	}
	public String getTotalId() {
		return totalId;
	}
	public void setTotalId(String totalId) {
		this.totalId = totalId;
	}
	
	public void setId(String id) {
		this.id = id;
	}
	
	@Override
	public Serializable getId() {
		return id;
	}

	@Override
	public String[] businessKeys() {
		// TODO Auto-generated method stub
		return null;
	}

}
